import {http} from "..";

// 今日事故数总览
export const GetHomeCompareData = () => http.get({ url: "/home/statistics" });

// 今日事故数详情

export const GetHomeCompareDataPageInfo = (data) => http.get({ url: "/home/statisticPageInfo",data:data });

// 事故四项指数统计
export const GetHomeIndicatorStatistics = () =>
  http.get({ url: "/home/indicatorStatistics" });


export const GetHomeindicatorStatisticPageInfo = (data) => http.get({ url: "/home/indicatorStatisticPageInfo",data:data });
// 事故列表
export const GetHomeAccidentInfo = (data) =>
  http.get({ url: "/home/info", data });

// 事故趋势图
export const GetHomeTrendsLineChartData = () =>
  http.get({ url: "/home/trends" });


export const GetHometrendPageInfo = (data) => http.get({ url: "/home/trendPageInfo",data:data });
// 大队事故分析柱状图
export const GetHomeAccidentGroupBarChartData = () =>
  http.get({ url: "/home/numGroupByDept" });


export const GetHomedeptPageInfo = (data) => http.get({ url: "/home/deptPageInfo",data:data });
// 事故高发路段排行
export const GetHomeAccidentTopRankBarChartData = () =>
  http.get({ url: "/home/numGroupByRoad" });

export const GetHomeroadPageInfo = (data) => http.get({ url: "/home/roadPageInfo",data:data });
// 登录接口
export const PostLogin = (data={jh:''}) => http.post({ url: `/user/login`,data:data });
export const PostLoginNew = (data={username:'',password:''}) => http.post({ url: `/auth/login`, data:data });
export const GetInfo = () => http.get({ url: `/system/user/getInfo`});
export const GetList = () => http.get({ url: `/auth/tenant/list` });

